<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
    <style>
      body {
        height: 100vh;
        font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
        Microsoft YaHei, Arial, sans-serif;
        padding: 0;
        margin: 0;
        font-size: 24px;
        background: url('/bg.jpeg') no-repeat center center;
        background-size: cover;
      }
      ul{
        list-style: none;
      }
      @media screen and (max-width: 500px) {
          body {
            height: 300vh;
            padding-top: 500px;
            box-sizing: border-box;
          }
      }
      @media screen and (min-width:501px) and (max-width:700px) {
        body {
            height: 350vh ;
            padding-top: 400px;
            box-sizing: border-box;
          }
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <script>
      function bodyScale() {
      var deviceWidth = window.screen.width;//获取当前分辨率下的可是区域宽度
      var deviceHeight = window.screen.height;//获取当前分辨率下的可是区域宽度
      var scale = deviceWidth / 2560 ; // 分母——设计稿的尺寸
      document.body.style.zoom = scale;//放大缩小相应倍数
      setTimeout(()=>{
        if(deviceWidth<800){
        window.alert('请打开自动旋转后横屏，体验更好')
      }
      },2000)
      
    }
      bodyScale()
    </script>
  </body>
</html>
